﻿using Logic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;

namespace TestProject1
{


    /// <summary>
    ///This is a test class for DecypttionRoutin1502Test and is intended
    ///to contain all DecypttionRoutin1502Test Unit Tests
    ///</summary>
    [TestClass()]
    public class DecypttionRoutin1502Test
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Pak_SwitchEncryptionOff_150
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Logic.dll")]
        public void Pak_SwitchEncryptionOff_150Test()
        {
            //DecryptionRoutine target = new DecypttionRoutin1502_Accessor(); // TODO: Initialize to an appropriate value
            //byte[] pak = SoapHexBinary.Parse("fcc7e07f11ea").Value; // TODO: Initialize to an appropriate value
            byte[] pak = SoapHexBinary.Parse("DD0271AC9834").Value; // TODO: Initialize to an appropriate value


            byte[] pake = new byte[] { };
            // ulong seed = ulong.Parse("29a0d04d", System.Globalization.NumberStyles.HexNumber);
            byte[] seed = SoapHexBinary.Parse("E1CD7F98").Value; // TODO: Initialize to an appropriate value
            int seedlong = BitConverter.ToInt32(seed, 0);
            // byte[] seed = SoapHexBinary.Parse("005b3080").Value; // TODO: Initialize to an appropriate value
            byte[] lool = BitConverter.GetBytes(seedlong);
            SoapHexBinary shb = new SoapHexBinary(lool);
            short expected = 0; // TODO: Initialize to an appropriate value

           byte[] actuaal = DecryptionRoutine.Pak_SwitchEncryptionOff_150(pak, seed);
           Assert.AreEqual(expected, actuaal);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Pak_SwitchEncryptionOn_150
        ///</summary>
        [TestMethod()]
        public void Pak_SwitchEncryptionOn_150Test()
        {
           // DecryptionRoutine target = new DecryptionRoutine(); // TODO: Initialize to an appropriate value
            byte[] pak = new byte[] { 0, 0, 0, 0, 0, 66 }; // TODO: Initialize to an appropriate value
            short expected = 0; // TODO: Initialize to an appropriate value
            short actual;
            actual = DecryptionRoutine.Pak_SwitchEncryptionOn_150(pak);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
